﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.DialogUI {
    import flash.display.*;
    import org.aswing.*;

    public class CheckBox extends AssetPane {

        protected var m_state:Boolean;
        protected var m_madeasset:Sprite;
        protected var m_foregroundAsset:DisplayObject;
        protected var m_backgroundAsset:DisplayObject;

        public function CheckBox(_arg1:DisplayObject=null, _arg2:DisplayObject=null, _arg3:Boolean=false, _arg4:int=1){
            var _local5:DisplayObject;
            this.m_foregroundAsset = _arg1;
            this.m_backgroundAsset = _arg2;
            this.m_state = _arg3;
            if (this.m_state == true){
                _local5 = this.m_foregroundAsset;
            } else {
                _local5 = this.m_backgroundAsset;
            };
            super(_local5, _arg4);
        }
        public function turnOn():void{
            this.m_state = true;
            this.setAsset(this.m_foregroundAsset);
        }
        public function turnOff():void{
            this.m_state = false;
            this.setAsset(this.m_backgroundAsset);
        }
        public function get state():Boolean{
            return (this.m_state);
        }

    }
}//package Display.DialogUI 
